//
//  YXVideoEffect.h
//  YXVideoKit
//
//  Created by Simon on 14-10-10.
//  Copyright (c) 2014年 YIXIA. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>

@class YXVideoEditor;

typedef enum {
    YXSrcVidTypeUndefine,
    YXSrcVidTypePortrait,
    YXSrcVidTypeLandscape
} YXSrcVidType;

@interface YXVideoEffect : NSObject

//外部指定
@property (nonatomic, assign) BOOL              needVideoLogo;
@property (nonatomic, assign) BOOL              discardClips;
@property (nonatomic, retain) NSString          *assetFolder;
@property (nonatomic, retain) NSString          *nickName;
@property (nonatomic, retain) NSString          *city_pinyin;
@property (nonatomic, assign) NSInteger         temperature;
@property (nonatomic, retain) NSDictionary      *userLocationInfo;
//是否个性化
@property (nonatomic, assign) BOOL              isNeedBigger;
@property (nonatomic, assign) YXSrcVidType      srcVidType;


- (id)initWithEditor:(YXVideoEditor *)editor;
- (void)refreshEditor:(YXVideoEditor*)editor;

- (NSArray*)applyEffectByConfig:(NSArray*)array withDir:(NSString*)dir;
- (NSArray*)applyEffectByConfig:(NSArray*)array withDir:(NSString*)dir withPhotos:(NSArray*)pClips;

- (NSDictionary*)applyEffectByBlueprint:(NSDictionary*)blueprint withDir:(NSString*)dir;

- (void)clearSpecialClips;
- (void)dealWithSpecialClipsBegin:(void(^)(void))beginHandler complete:(void(^)(void))completeHandler;

+ (NSArray *)getPhotoMVDefalutConfig;
+ (NSArray *)getPhotoMVProjectorNew;

- (NSDictionary *)getTailConfig;
- (NSDictionary *)getShortTailConfig;

+ (NSString*)decodeAtPath:(NSString*)path;

@end

@interface YXVideoPhotoClip : NSObject

@property (nonatomic,strong) NSString *filePath;
@property (nonatomic,strong) NSDate *date;
@property (nonatomic,strong) CLLocation *location;

@end
